export default {
  tabs: true,
  tabsActive: 1,
  labelWidth: 150,
  group: [
    {
      label: '基本信息',
      prop: 'info',
      column: [
        {
          label: "店铺名称",
          prop: "name",
          rules: [{
            required: true,
            message: "请输入店铺名称",
            trigger: "blur"
          }],
          row: true
        },
        {
          label: "联系人",
          prop: "linkman",
          rules: [{
            required: true,
            message: "请输入联系人",
            trigger: "blur"
          }],
          row: true
        },
        {
          label: "联系电话",
          prop: "contactNumber",
          rules: [{
            required: true,
            message: "请输入联系电话",
            trigger: "blur"
          }],
          row: true
        },
        {
          label: "店铺位置",
          prop: "address",
          rules: [{
            required: true,
            message: "请输入店铺位置",
            trigger: "blur"
          }],
          row: true
        },
        {
          label: "店铺定位",
          prop: "longitudeAndLatitude",
          component: "avueMap",
          type:'map',
          slot: true,
          hide: true,
          row: true
        },
        {
          label: "logo",
          prop: "logoUrl",
          dataType: 'string',
          type: 'upload',
          span: 12,
          listType: 'picture-card',
          propsHttp: {
            res: 'data',
            url: 'link',
            name: 'originalName'
          },
          limit: 1,
          action: '/api/blade-resource/oss/endpoint/put-file',
          row: true
        },
        {
          label: "公众号二维码",
          prop: "wxOfficialQrcode",
          dataType: 'string',
          type: 'upload',
          span: 12,
          listType: 'picture-card',
          propsHttp: {
            res: 'data',
            url: 'link',
            name: 'originalName'
          },
          limit: 1,
          action: '/api/blade-resource/oss/endpoint/put-file',
          row: true
        },
        {
          label: "图片",
          prop: "pictureUrl",
          dataType: 'string',
          type: 'upload',
          span: 12,
          listType: 'picture-card',
          propsHttp: {
            res: 'data',
            url: 'link',
            name: 'originalName'
          },
          limit: 2,
          tip: '只能上传jpg/png文件，且不超过500kb, 限制2张图片',
          action: '/api/blade-resource/oss/endpoint/put-file',
          row: true
        },
        {
          label: "营业开始时间",
          prop: "businessStartTime",
          type: "time",
          format: "HH:mm:00",
          valueFormat: "HH:mm:00",
          rules: [{
            required: true,
            message: "请选择营业时间",
            trigger: "blur"
          }],
          span: 12,
          placeholder: false,
          row: true,
        },
        {
          label: "营业结束时间",
          prop: "businessEndTime",
          type: "time",
          format: "HH:mm:00",
          valueFormat: "HH:mm:00",
          rules: [{
            required: true,
            message: "请选择营业时间",
            trigger: "blur"
          }],
          span: 12,
          placeholder: false,
          row: true,
        },
        {
          label: "配送范围",
          prop: "deliveryArea",
          type: "number",
          placeholder: '请输入配送范围（单位: km）',
          row: true
        },
        {
          label: "客户每月免费超时取消次数",
          prop: "timeoutCancelCount",
          type: "number",
          placeholder: '请输入客户每月免费超时取消次数',
          row: true
        },
        {
          label: "店铺描述",
          prop: "description",
          type: "textarea",
          row: true
        },
      ]
    },
    // {
    //   label: '配送设置',
    //   prop: 'info',
    //   column: [
    //     {
    //       label: "配送范围",
    //       prop: "deliveryArea",
    //       type: "number",
    //       placeholder: '请输入配送范围（单位: km）',
    //       row: true
    //     },
    //   ]
    // },
  ],
}
